package com.example.controller;

import cn.hutool.json.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class HelloWorld {

    @GetMapping("/hello")
    public JSONObject get() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.putOnce("msg","hellow world");
        return jsonObject;
    }
}
